import http from './request'
// http://127.0.0.1:9561/app/appsystem/collage/getCardCollageInfo?collageId=1643162975777316866
// /cardCollage/getCardCollageInfoById?collageId=1
export const getCardCollageInfo = (collageId) => {
	return http.request({
		url: `app/system/cardCollage/getCardCollageInfoByIdByShare`,
		method: 'GET',
		data:{
			collageId:collageId
		}
	})
}
// 127.0.0.1:8080/app/appsystem/dict/type/type/sys_normal_disable
export const dict = (logType)=>{
	return http.request({
		url:`app/system/dict/type/${logType}`,
		method:'get'
	})
}
export const collageBoard = (collageId)=>{
	return http.request({
		url:`app/appsystem/collage/collageBoard?collageId=${collageId}`,
		method:'get'
	})
}
// http://127.0.0.1:9561/app/appsystem/collage/collageBoard?collageId=1656859786634375169
export const dictType = (dictType,arr) => {
	let dictLabel ={
		dictLabel:'',
		listClass:'',
	}
	arr.forEach((item) => {
		if (Number(item.dictValue) == Number(dictType)) {
			// console.log('11111111111',item);
			dictLabel.dictLabel = item.dictLabel
			dictLabel.listClass = item.listClass
		}
	})
	return dictLabel
}